<template>
    <vue-editor
        :value="value"
        @input="handlerInput"
        @imageAdded="addedImage"
        useCustomImageHandler
    ></vue-editor>
</template>
<script>
import { VueEditor } from 'vue2-editor'

export default {
    props: {
        value: {
            type: String,
            default: ''
        }
    },
    components: {
        VueEditor
    },
    methods: {
        handlerInput (v) {
            this.$emit('input', v)
        },
        addedImage () {
            this.$Message.warning('暂不支持文件上传')
        }
    }
}
</script>
